<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加溯源批次单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../elementUI/index.css">
    <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
    <div id="app" class="minWidth">
        <el-form :model="form" ref="contract" :rules="rules" inline-message="true" style="width: 100%">
            <div class="table_titel">
                <div class="titel">添加溯源批次单</div>
            </div>
            <el-descriptions :column="1" border size="small">
                <el-descriptions-item label="生产基地">
                    <el-form-item prop="Traceability_Base_SerialNumber">
                        <el-select v-model.trim="form.Traceability_Base_SerialNumber" placeholder="请选择生产基地" filterable style="width: 100%">
                            <el-option v-for="(item,index) in traceabilitybase_info" :key="index" :label="item.Traceability_Base_Name" :value="item.Traceability_Base_SerialNumber"></el-option>
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="生产商品">
                    <el-form-item prop="Article_SerialNumber">
                        <el-select v-model.trim="form.Article_SerialNumber" placeholder="请选择生产的商品" filterable style="width: 100%">
                            <el-option v-for="(item,index) in article_info" :key="index" :label="item.Article_Name" :value="item.Article_SerialNumber"></el-option>
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="生产日期">
                    <el-form-item prop="Produce_Date">
                        <el-date-picker v-model.trim="form.Produce_Date" type="datetime" placeholder="请选择生产日期"
                            value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="负责人">
                    <el-form-item prop="Contacts">
                        <el-input v-model.trim="form.Contacts" placeholder="请输入负责人"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="负责人电话">
                    <el-form-item prop="Contact_Phone">
                        <el-input v-model.trim="form.Contact_Phone" placeholder="请输入负责人电话"></el-input>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <el-form-item class="form-operation">
                <el-button @click="window.history.back()">返回</el-button>
                <el-button @click="resetForm('contract')">重置</el-button>
                <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../js/vue.min.js"></script>
    <script type="text/javascript" src="../../../elementUI/index.js"></script>
    <script type="text/javascript" src="../../../js/utils.js"></script>
    <script type="text/javascript" src="../../../js/ID_Validity.js"></script>
    <script type="text/javascript" src="./js/Add.js"></script>
    <script type="text/javascript">

    </script>
</body>

</html>